require(["jquery",  "ModelBase"], function($, ModelBase) {
    $(function() {
        // insert app.main functionality here.
		var page, testModelBase;
		page = $('body');


		// Test contructor.
		before();
		page.append("Testing Constructor , should return [Object] typeof === ModelBase <br/>");
		if (typeof testModelBase === 'undefined') {
			page.append('<b>Failed to create!</b><br/>');
		}
		else if (typeof testModelBase === 'ModelBase') {
			page.append('<i>Passed!</i><br/>');			
		}
		else {
			page.append('<b>Object type wrong!</b><br/>');
		}
		after();
				
		
		function before() {
			testModelBase = new ModelBase('testModel');
		}
		function after() {
			testModelBase = null;
		}

		
    });

	
});









